package main

import (
	"log"
	"server_cluster/gate/sharemem"
	"server_cluster/gate/gate_config"
)

func main() {
	gate_config.InitConfig()
	shmid := sharemem.Get_myshm(&(sharemem.Myshm))
	if shmid <= 0 {
		log.Fatal("get myshm fail.")
		return
	}
	//
	sharemem.Init_all_user_index()

	//	log.Println(sharemem.Get_config_skill_effect(110080001))
	//log.Println(sharemem.Get_config_skill_passive(100101))
	//	log.Println(sharemem.Get_config_skill_child(110080101))
	//	log.Println(sharemem.Get_config_captain(1))

	for i:=0;i<gate_config.SHM_USER_MAX;i++ {
		if sharemem.Myshm.User[i].Uid > 0 {
			log.Println(sharemem.Myshm.User[i])
		}
	}
}
